export default [
  {
    path: '/login',
    component: '@/pages/login',
    name: '登录',
    // 不让其显示在菜单栏
    hideInMenu: true,
    // 不展示菜单
    menuRender: false,
    // 不展示顶栏
    headerRender: false,
  },
  {
    path: '/',
    component: '@/pages/index',
    name: '主页',
    icon: 'AreaChartOutlined',
  },
  {
    path: '/Stucategory',
    name: '学员分类',
    icon: 'AreaChartOutlined',
    routes: [
      {
        path: '/Stucategory/list',
        component: '@/pages/Stucategory/list',
        name: '学员列表',
      },
      {
        path: '/Stucategory/pub',
        component: '@/pages/Stucategory/pub',
        name: '学员发布',
      },
    ],
  },
  {
    path: '/category',
    name: '分类管理',
    icon: 'AreaChartOutlined',
    routes: [
      {
        path: '/category/list',
        component: '@/pages/category/catelist',
        name: '分类列表',
      },
      {
        path: '/category/pub',
        component: '@/pages/category/catepub',
        name: '分类发布',
      },
    ],
  },
  {
    path: '/banner',
    name: '轮播管理',
    icon: 'RadarChartOutlined',
    routes: [
      {
        path: '/banner/list',
        component: '@/pages/banner/list',
        name: '轮播列表',
      },
      {
        path: '/banner/pub',
        component: '@/pages/banner/pub',
        name: '轮播发布',
      },
      {
        path: '/banner/edit',
        component: '@/pages/banner/edit',
        name: '轮播编辑',
        // 不让其显示在菜单栏
        hideInMenu: true,
      },
    ],
  },
  {
    path: '/goods',
    name: '商品管理',
    icon: 'CodeSandboxOutlined',
    access: 'isAdmin',
    routes: [
      {
        path: '/goods/list',
        component: '@/pages/goods/list',
        name: '商品列表',
      },
      {
        path: '/goods/pub',
        component: '@/pages/goods/pub',
        name: '商品发布',
      },
    ],
  },
];
